Rapid-Q Documentation by William Yu (c)1999-2000 | Chapter 2 |
DIM MainForm AS QFORM MainForm.ShowModalIf you're using the Rapid-Q IDE, just type in that code (or cut & paste if you like). Click on the Run Menu, and select Run. If all goes well, you should see an empty Window at the top left hand corner of the screen. Close it and return to your IDE. If you prefer the command line approach of compiling, then load up your favourite editor, copy the above code and save it to a file (Forms.BAS). Then to compile it, you type in:
RC Forms.BASIf all goes well, you should have a Forms.EXE file in the current directory. Just type Forms to run it. If all goes well, continue reading. If not, then something is amiss, in which case, see the Trouble Shooting section.
-I[Path] Change Include Path -L[Path] Change Library Path -G[File] Icon fileThe compiler by default looks in the current directory for the .LIB files and any include files. You can override this by specifying the above command line switches. Since we're talking about C type parameters, there are a few niceties you have to know about, first, the paths should be specified like so:
RC -Ic:/rapidq/includesYou can use \ instead of / but there's a reason why / is preferred, consider this:
RC -I"c:\rapidq long dir\includes\"If you never used C (or C++) you'll not likely see what I mean. If you prefer the above command line, you have to add an extra \ to the end (or drop it entirely), like so:
RC -I"c:\rapidq long dir\includes\\" or RC -I"c:\rapidq long dir\includes"This is because C translates \" into " which is obvious to any C programmer. Also, long file names must be enclosed in quotations. Those are the catches, so now you know (or already knew).
RC -Gzip.ico zipview.basWhen your ZIPVIEW.EXE file is generated, the file "zip.ico" will replace the default icon. Please note that your icon must be 32x32 and 16 colors (also 766 bytes).
PRINT "Hello" : PRINT "World" or PRINT "Hello" PRINT "World"Most BASIC programmers will become very accustomed to the language once they use it. However, Rapid-Q does not inherit the properties of Visual Basic. For example, there's no SUB MAIN procedure, nor is there any public or private identifiers used in Rapid-Q. Your entire program is considered the MAIN program. Going from Rapid-Q to Visual Basic probably requires a bit more effort than the reverse.
Prev Chapter | Contents | Next Chapter |